#
# MAINTAINER        xu <2395935160@qq.com>
# DOCKER-VERSION    17.03.1-ce
#
# Dockerizing CentOS7: Dockerfile for building CentOS images
#
FROM       centos:7.3.1611
MAINTAINER xu <2395935160@qq.com>

ENV DATA_DIR /var/lib/mysql

# Install Mariadb
RUN yum install -y mariadb mariadb-server && \
    yum clean all

ADD mysqld_charset.cnf /etc/my.cnf.d/

COPY scripts /scripts
RUN chmod +x /scripts/start

EXPOSE 3306

VOLUME ["/var/lib/mysql"]

ENTRYPOINT ["/scripts/start"]
